from prettytable import PrettyTable		
#从模块中导入PrettyTable

x = PrettyTable()
a= [{"CardNumber":4146321829389,"IdUser":5116212004002036172,"Money":1000,"Name":"张辉","PassWord":131452,"Telephone":17346885580},{"CardNumber":1979912255444,"IdUser":5116212004002036172,"Money":500,"Name":"张辉","PassWord":131452,"Telephone":17346885580}]
x.field_names = ['银行卡','身份证','金额','名称','密码','手机号']
#标题
for i in a:
    x.add_row([i['CardNumber'],i['IdUser'],i['Money'],i['Name'],i['PassWord'],i['Telephone']])
print(x)
